import { Module } from "vuex";
import { GlobalDataProps } from "../index";

export interface catalogProps {
    Datalist: {};
}

const catalog: Module<catalogProps, GlobalDataProps> = {
    namespaced: true,
    state: {
        Datalist: {},
    },
    getters: {},
    mutations: {
        CatalogDetails(state, data) {
            state.Datalist = data
        }
    },
    actions: {
        getCatalogDetails({ commit }, data) {
            commit('CatalogDetails', data)
        }
    }
};

export default catalog;

